Optimal. Leaf size=333 \[ -\frac{x^{3/2} \left (5 a^2 d^2-2 a b c d+b^2 c^2\right )}{2 c^2 d \left (c+d x^2\right )}-\frac{2 a^2}{c \sqrt{x} \left (c+d x^2\right )}+\frac{(b c-a d) (5 a d+3 b c) \log \left (-\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{c}+\sqrt{d} x\right )}{8 \sqrt{2} c^{9/4} d^{7/4}}-\frac{(b c-a d) (5 a d+3 b c) \log \left (\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{c}+\sqrt{d} x\right )}{8 \sqrt{2} c^{9/4} d^{7/4}}-\frac{(b c-a d) (5 a d+3 b c) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}\right )}{4 \sqrt{2} c^{9/4} d^{7/4}}+\frac{(b c-a d) (5 a d+3 b c) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}+1\right )}{4 \sqrt{2} c^{9/4} d^{7/4}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.327528, antiderivative size = 333, normalized size of antiderivative = 1., number of steps used = 12, number of rules used = 9, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.375, Rules used = {462, 457, 329, 297, 1162, 617, 204, 1165, 628} \[ -\frac{x^{3/2} \left (5 a^2 d^2-2 a b c d+b^2 c^2\right )}{2 c^2 d \left (c+d x^2\right )}-\frac{2 a^2}{c \sqrt{x} \left (c+d x^2\right )}+\frac{(b c-a d) (5 a d+3 b c) \log \left (-\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{c}+\sqrt{d} x\right )}{8 \sqrt{2} c^{9/4} d^{7/4}}-\frac{(b c-a d) (5 a d+3 b c) \log \left (\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{c}+\sqrt{d} x\right )}{8 \sqrt{2} c^{9/4} d^{7/4}}-\frac{(b c-a d) (5 a d+3 b c) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}\right )}{4 \sqrt{2} c^{9/4} d^{7/4}}+\frac{(b c-a d) (5 a d+3 b c) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}+1\right )}{4 \sqrt{2} c^{9/4} d^{7/4}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 462
Rule 457
Rule 329
Rule 297
Rule 1162
Rule 617
Rule 204
Rule 1165
Rule 628
Rubi steps
\begin{align*} \int \frac{\left (a+b x^2\right )^2}{x^{3/2} \left (c+d x^2\right )^2} \, dx &=-\frac{2 a^2}{c \sqrt{x} \left (c+d x^2\right )}+\frac{2 \int \frac{\sqrt{x} \left (\frac{1}{2} a (2 b c-5 a d)+\frac{1}{2} b^2 c x^2\right )}{\left (c+d x^2\right )^2} \, dx}{c}\\ &=-\frac{2 a^2}{c \sqrt{x} \left (c+d x^2\right )}-\frac{\left (b^2 c^2-2 a b c d+5 a^2 d^2\right ) x^{3/2}}{2 c^2 d \left (c+d x^2\right )}+\frac{((b c-a d) (3 b c+5 a d)) \int \frac{\sqrt{x}}{c+d x^2} \, dx}{4 c^2 d}\\ &=-\frac{2 a^2}{c \sqrt{x} \left (c+d x^2\right )}-\frac{\left (b^2 c^2-2 a b c d+5 a^2 d^2\right ) x^{3/2}}{2 c^2 d \left (c+d x^2\right )}+\frac{((b c-a d) (3 b c+5 a d)) \operatorname{Subst}\left (\int \frac{x^2}{c+d x^4} \, dx,x,\sqrt{x}\right )}{2 c^2 d}\\ &=-\frac{2 a^2}{c \sqrt{x} \left (c+d x^2\right )}-\frac{\left (b^2 c^2-2 a b c d+5 a^2 d^2\right ) x^{3/2}}{2 c^2 d \left (c+d x^2\right )}-\frac{((b c-a d) (3 b c+5 a d)) \operatorname{Subst}\left (\int \frac{\sqrt{c}-\sqrt{d} x^2}{c+d x^4} \, dx,x,\sqrt{x}\right )}{4 c^2 d^{3/2}}+\frac{((b c-a d) (3 b c+5 a d)) \operatorname{Subst}\left (\int \frac{\sqrt{c}+\sqrt{d} x^2}{c+d x^4} \, dx,x,\sqrt{x}\right )}{4 c^2 d^{3/2}}\\ &=-\frac{2 a^2}{c \sqrt{x} \left (c+d x^2\right )}-\frac{\left (b^2 c^2-2 a b c d+5 a^2 d^2\right ) x^{3/2}}{2 c^2 d \left (c+d x^2\right )}+\frac{((b c-a d) (3 b c+5 a d)) \operatorname{Subst}\left (\int \frac{1}{\frac{\sqrt{c}}{\sqrt{d}}-\frac{\sqrt{2} \sqrt [4]{c} x}{\sqrt [4]{d}}+x^2} \, dx,x,\sqrt{x}\right )}{8 c^2 d^2}+\frac{((b c-a d) (3 b c+5 a d)) \operatorname{Subst}\left (\int \frac{1}{\frac{\sqrt{c}}{\sqrt{d}}+\frac{\sqrt{2} \sqrt [4]{c} x}{\sqrt [4]{d}}+x^2} \, dx,x,\sqrt{x}\right )}{8 c^2 d^2}+\frac{((b c-a d) (3 b c+5 a d)) \operatorname{Subst}\left (\int \frac{\frac{\sqrt{2} \sqrt [4]{c}}{\sqrt [4]{d}}+2 x}{-\frac{\sqrt{c}}{\sqrt{d}}-\frac{\sqrt{2} \sqrt [4]{c} x}{\sqrt [4]{d}}-x^2} \, dx,x,\sqrt{x}\right )}{8 \sqrt{2} c^{9/4} d^{7/4}}+\frac{((b c-a d) (3 b c+5 a d)) \operatorname{Subst}\left (\int \frac{\frac{\sqrt{2} \sqrt [4]{c}}{\sqrt [4]{d}}-2 x}{-\frac{\sqrt{c}}{\sqrt{d}}+\frac{\sqrt{2} \sqrt [4]{c} x}{\sqrt [4]{d}}-x^2} \, dx,x,\sqrt{x}\right )}{8 \sqrt{2} c^{9/4} d^{7/4}}\\ &=-\frac{2 a^2}{c \sqrt{x} \left (c+d x^2\right )}-\frac{\left (b^2 c^2-2 a b c d+5 a^2 d^2\right ) x^{3/2}}{2 c^2 d \left (c+d x^2\right )}+\frac{(b c-a d) (3 b c+5 a d) \log \left (\sqrt{c}-\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{d} x\right )}{8 \sqrt{2} c^{9/4} d^{7/4}}-\frac{(b c-a d) (3 b c+5 a d) \log \left (\sqrt{c}+\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{d} x\right )}{8 \sqrt{2} c^{9/4} d^{7/4}}+\frac{((b c-a d) (3 b c+5 a d)) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1-\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}\right )}{4 \sqrt{2} c^{9/4} d^{7/4}}-\frac{((b c-a d) (3 b c+5 a d)) \operatorname{Subst}\left (\int \frac{1}{-1-x^2} \, dx,x,1+\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}\right )}{4 \sqrt{2} c^{9/4} d^{7/4}}\\ &=-\frac{2 a^2}{c \sqrt{x} \left (c+d x^2\right )}-\frac{\left (b^2 c^2-2 a b c d+5 a^2 d^2\right ) x^{3/2}}{2 c^2 d \left (c+d x^2\right )}-\frac{(b c-a d) (3 b c+5 a d) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}\right )}{4 \sqrt{2} c^{9/4} d^{7/4}}+\frac{(b c-a d) (3 b c+5 a d) \tan ^{-1}\left (1+\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}\right )}{4 \sqrt{2} c^{9/4} d^{7/4}}+\frac{(b c-a d) (3 b c+5 a d) \log \left (\sqrt{c}-\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{d} x\right )}{8 \sqrt{2} c^{9/4} d^{7/4}}-\frac{(b c-a d) (3 b c+5 a d) \log \left (\sqrt{c}+\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{d} x\right )}{8 \sqrt{2} c^{9/4} d^{7/4}}\\ \end{align*}
Mathematica [A] time = 0.188094, size = 317, normalized size = 0.95 \[ \frac{\frac{\sqrt{2} \left (-5 a^2 d^2+2 a b c d+3 b^2 c^2\right ) \log \left (-\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{c}+\sqrt{d} x\right )}{d^{7/4}}+\frac{\sqrt{2} \left (5 a^2 d^2-2 a b c d-3 b^2 c^2\right ) \log \left (\sqrt{2} \sqrt [4]{c} \sqrt [4]{d} \sqrt{x}+\sqrt{c}+\sqrt{d} x\right )}{d^{7/4}}+\frac{2 \sqrt{2} \left (5 a^2 d^2-2 a b c d-3 b^2 c^2\right ) \tan ^{-1}\left (1-\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}\right )}{d^{7/4}}+\frac{2 \sqrt{2} \left (-5 a^2 d^2+2 a b c d+3 b^2 c^2\right ) \tan ^{-1}\left (\frac{\sqrt{2} \sqrt [4]{d} \sqrt{x}}{\sqrt [4]{c}}+1\right )}{d^{7/4}}-\frac{32 a^2 \sqrt [4]{c}}{\sqrt{x}}-\frac{8 \sqrt [4]{c} x^{3/2} (b c-a d)^2}{d \left (c+d x^2\right )}}{16 c^{9/4}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.016, size = 495, normalized size = 1.5 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.21648, size = 3861, normalized size = 11.59 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.23198, size = 525, normalized size = 1.58 \begin{align*} -\frac{b^{2} c^{2} x^{2} - 2 \, a b c d x^{2} + 5 \, a^{2} d^{2} x^{2} + 4 \, a^{2} c d}{2 \,{\left (d x^{\frac{5}{2}} + c \sqrt{x}\right )} c^{2} d} + \frac{\sqrt{2}{\left (3 \, \left (c d^{3}\right )^{\frac{3}{4}} b^{2} c^{2} + 2 \, \left (c d^{3}\right )^{\frac{3}{4}} a b c d - 5 \, \left (c d^{3}\right )^{\frac{3}{4}} a^{2} d^{2}\right )} \arctan \left (\frac{\sqrt{2}{\left (\sqrt{2} \left (\frac{c}{d}\right )^{\frac{1}{4}} + 2 \, \sqrt{x}\right )}}{2 \, \left (\frac{c}{d}\right )^{\frac{1}{4}}}\right )}{8 \, c^{3} d^{4}} + \frac{\sqrt{2}{\left (3 \, \left (c d^{3}\right )^{\frac{3}{4}} b^{2} c^{2} + 2 \, \left (c d^{3}\right )^{\frac{3}{4}} a b c d - 5 \, \left (c d^{3}\right )^{\frac{3}{4}} a^{2} d^{2}\right )} \arctan \left (-\frac{\sqrt{2}{\left (\sqrt{2} \left (\frac{c}{d}\right )^{\frac{1}{4}} - 2 \, \sqrt{x}\right )}}{2 \, \left (\frac{c}{d}\right )^{\frac{1}{4}}}\right )}{8 \, c^{3} d^{4}} - \frac{\sqrt{2}{\left (3 \, \left (c d^{3}\right )^{\frac{3}{4}} b^{2} c^{2} + 2 \, \left (c d^{3}\right )^{\frac{3}{4}} a b c d - 5 \, \left (c d^{3}\right )^{\frac{3}{4}} a^{2} d^{2}\right )} \log \left (\sqrt{2} \sqrt{x} \left (\frac{c}{d}\right )^{\frac{1}{4}} + x + \sqrt{\frac{c}{d}}\right )}{16 \, c^{3} d^{4}} + \frac{\sqrt{2}{\left (3 \, \left (c d^{3}\right )^{\frac{3}{4}} b^{2} c^{2} + 2 \, \left (c d^{3}\right )^{\frac{3}{4}} a b c d - 5 \, \left (c d^{3}\right )^{\frac{3}{4}} a^{2} d^{2}\right )} \log \left (-\sqrt{2} \sqrt{x} \left (\frac{c}{d}\right )^{\frac{1}{4}} + x + \sqrt{\frac{c}{d}}\right )}{16 \, c^{3} d^{4}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]